package cn.sdormitory.smartclass.service;

import cn.sdormitory.smartclass.entity.AdClassAttence;
import cn.sdormitory.smartclass.entity.ClassAttence;
import cn.sdormitory.smartclass.form.StudentClassAttendanceQueryForm;
import cn.sdormitory.smartclass.vo.ClassAttenceVo;
import cn.sdormitory.smartclass.vo.StudentClassAttendanceVo;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;
import java.util.Map;

/**
 * @创建人：zhouyang
 * @创建时间：2021/12/20 16:28
 * @version：V1.0
 */
public interface ClassAttenceService {
    int getAppClaStuAttCount(Long classId,String accessDate,String timeSlot);
    List<ClassAttenceVo> getAppClaStuAttByClaIdAndSlot(Long classId,String accessDate,String timeSlot);
    List<ClassAttenceVo> getAppClaStuByClaId(Long classId);

    /**
     * 查询住宿学生
     * @param classId
     * @return
     */
    List<ClassAttenceVo> getAppClaStayStuByClaId(Long classId);
    int updateClaAttStatus(String studentNo,String accessDate,String attenceStatus,String timeSlot);
    int addClassAttence(AdClassAttence adClassAttence);

    boolean receiveClsAttendanceRecords(List<Map<String, String>> records) throws Exception;

    Map<String, List<String>> getClassAttenceStuByCondition(ClassAttence condition);

    IPage<StudentClassAttendanceVo> getStudentClassAttendancePage(StudentClassAttendanceQueryForm form);
}
